package com.ylx.model.goods.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName pxx_goods
 */
@TableName(value ="pxx_goods")
@Data
public class PxxGoods implements Serializable {
    /**
     * 商品主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "gname")
    private String gname;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private Integer price;

    /**
     * 商品描述
     */
    @TableField(value = "dec")
    private String dec;

    /**
     * 商品库存
     */
    @TableField(value = "count")
    private Integer count;

    /**
     * 分类id
     */
    @TableField(value = "tid")
    private Integer tid;

    /**
     * 品牌id
     */
    @TableField(value = "bid")
    private Integer bid;

    /**
     * 商品状态  1在售  2缺货  3已停产
     */
    @TableField(value = "status")
    private String status;

    /**
     * 商品上下状态 0下架  1上架
     */
    @TableField(value = "upstatus")
    private String upstatus;

    /**
     * 商品图片
     */
    @TableField(value = "img")
    private String img;

    /**
     * 商品详情页
     */
    @TableField(value = "url")
    private String url;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 商家id
     */
    @TableField(value = "userId")
    private Integer userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
